//background.js
function Background(source)
{
	this.img = new Image();
	this.img.src = source;
	this.loaded = false;
	
	this.img.onload = function()
	{
		loaded = true;
		console.log ("fundo carregado"+ loaded);
	};
	
	this.size_x = 800;
	this.size_y = 600;
	this.position_x = 0;
	this.position_y = 0;
	
	this.draw = function()
	{
		
	};
			
}